package com.coolw.design.pattern.behavior.observer;

/**
 * 具体目标类，平安证券
 *
 * @author coolw
 * @date 2019-12-24 10:59
 */
public class PingAnSecurities extends AbstractSubject {

    @Override
    public void increase() {
        System.out.println("平安证券股票上涨了。。。。。。");
        for (Observer observer : observers) {
            observer.happy();
        }
    }

    @Override
    public void decrease() {
        System.out.println("平安证券股票下跌了。。。。。。");
        for (Observer observer : observers) {
            observer.terrible();
        }
    }
}
